Skip to content

Instantly share code, notes, and snippets.

@zhangqifan
zhangqifan / AnimatedGlyphLabel.swift
Created August 1, 2026 09:24
AnimatedGlyphLabel — a single-line UIKit label that transitions text one glyph at a time (CoreText layout, per-glyph spring + gaussian blur stagger). Self-contained, iOS 13+, zero dependencies.
#if os(iOS)
import CoreImage
import CoreImage.CIFilterBuiltins
import CoreText
import UIKit
/// A single-line UIKit label that transitions text one glyph at a time.
///
/// The intrinsic content size follows the current text. Glyphs are laid out
/// individually from the leading edge, which suits short strings such as
@Klerith
Klerith / instalaciones-opencode.md
Last active August 1, 2026 19:50
Instalaciones para el curso de OpenCode
opencode wordmark

OpenCode: Guía completa para desarrolladores de software

@borjao-dev
borjao-dev / manifestoPessoalProgramacao.md
Created August 1, 2026 19:48
Manifesto Pessoal de Programação

Manifesto Pessoal de Programação

Um guia consolidado de princípios, processos, arquitetura e boas práticas — da concepção do problema até o código em produção. Escrito para ser consultado, não decorado.

Baseado em anotações de estudo acumuladas ao longo da carreira (originalmente com foco em PHP/Laravel), reorganizadas e generalizadas para programação em geral.


Como ler este documento

@willurd
willurd / web-servers.md
Last active August 1, 2026 19:47
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@wojteklu
wojteklu / clean_code.md
Last active August 1, 2026 19:46
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@daun
daun / LatteProvider.php
Last active August 1, 2026 19:39
Integrate Latte into Laravel directly without using a package
<?php
namespace App\Providers;
use Illuminate\Contracts\View\Factory;
use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Latte\Engine;
use Latte\Macros\MacroSet;

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@artikus11
artikus11 / rank-math-cleanup.php
Last active August 1, 2026 19:37
Rank Math SEO plugin cleanup
<?php
/**
* Plugin Name: Rank Math SEO plugin cleanup
* Description: A cached translation override for WordPress.
* Author: Artem Abramovich
* Plugin URI: https://gist.github.com/artikus11/0d7a52273bd8bdc85f0d3010f156cd5f
*
* @link https://rankmath.com/kb/filters-hooks-api-developer/
*
* @see https://gist.github.com/timbowen/c5c00667c4c48f8ec3f5706b686d6f00
@Stevoisiak
Stevoisiak / SO-7zip-extract-icon
Created March 6, 2017 19:38
Extract .ico icon file from .exe with 7zip
You can extract .ico icons from an exe with 7-zip!